import { defineStore } from "pinia";

export const userStore = defineStore("userInfo", {
  state: () => {
    return {
      userInfo: {},
    };
  },
  actions: {
    saveUserInfo(userInfo: any) {
      this.userInfo = userInfo;
    },
  },
  getters: {
    getUserInfo(): any {
      return this.userInfo;
    },
  },
});
